/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.dao;

import java.util.List;
import java.util.Map;

import com.kaaction.common.persistence.CrudDao;
import com.kaaction.common.persistence.annotation.MyBatisDao;
import com.kaaction.modules.mer.entity.Sku;

/**
 * 商品种类DAO接口
 * @author huanghaiming
 * @version 2017-05-21
 */
@MyBatisDao
public interface SkuDao extends CrudDao<Sku> {

	int selectCnt(Sku sku);

	Sku findSku(String spuId, String selectedColorId, String selectedSizeId);

	List<Map<String,Object>> selSku(String id);

	List<Map<String,Object>> selColor(String id);

	List<Map<String,Object>> selSize(String id);

	int deleteSku(String id);

	Sku findSkuBySpuId(String spuId);
	
}